package hgx.spring.cloud.lession.usercenter;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;

/**
 *   @EnableFeignClients 注解指定服务名来绑定服务，然后再使用Spring MVC 的注解来绑定具体该服务提供的REST 接口
 *   即只需创建一个接口并用注解的方式来配置它，即可完成对服务提供方的接口绑定。
 */

@EnableCircuitBreaker
@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication
public class UsercenterApplication {

	public static void main(String[] args) {
		SpringApplication.run(UsercenterApplication.class, args);
	}
}
